home *** CD-ROM | disk | FTP | other *** search
- GCW (Gnome's Call Waiting switcher) - Any serial device
- ======================================
- with particular reference to use with Trapdoor
-
- FOR USE ON BRITISH TELECOM SYSTEMS
- -----------------------------------
-
- 1. Why GCW?
- ------------
- Anyone who uses the BT 'Call Waiting' facility and also uses a modem
- on the same phone line will probably have discovered that if you get a
- Call Waiting beep while your modem is active, the modem is liable to
- drop the line.
-
- There are two obvious remedies:
-
- 1. Stop using Call Waiting. This is silly, since you still pay for it.
-
- 2. Switch off Call Waiting while your modem is using the line. Switch
- it back on when you have finished.
-
- This is easy to do manually. Dial #43# before using the modem. And
- dial *43# to restore Call Waiting when you've finished on the modem.
- But will you remember?
-
- Switching off Call Waiting is easily done by putting the following
- into your modem intialize string: ATDT#43# (+ 'return')
-
- This must be followed by a 'return' code, which is '|' for Trapdoor,
- '^M' for Ncomm, and \r' for some other programs. Find out which in
- your software manual.
-
- Restoring Call Waiting is harder to do automatically. In particular,
- Trapdoor will drop the line at the end of a session if you abort it
- due to a busy tone, or no reply. On a busy tone, Trapdoor goes into a
- retry loop which can only be aborted by using Esc. Then it closes
- immediately.
-
- In addition, Trapdoor dos not obey an AFTERSESSION command if there
- was nothing sent nor received. And it doesn't obey a hangup command
- if the other end drops the line - or if you use 'drop DT' to hang up.
-
- So these are reasons why trying to switch ON Call Waiting by Trapdoor
- is not reliable.
-
-
- 2. How?
- ---------
- So my GCW program was born. I call GCW in Trapdoor's AFTERSESSION
- script, with the ON switch. I also have it on a hot-key and can dab
- that if I hear that the modem has not been told to restore CW. You can
- tell, since you hear the modem start to say "Call waiting is in
- operation". You must have enough delay to allow the start of the
- recorded message to return to you. If you drop the line too soon,
- your Call Waiting will not be switched (on or off). The delay I use
- has been determined by experiment.
-
-
- 3. Usage: the command line.
- ----------------------------
- GCW [ON] [-w<waitvalue>] [-d<devicename>] [-u<unitnumber>]
- e.g. GCW -w3 -dgvpser.device -u1
-
- Defaults: OFF waitvalue=2 devicename=serial.device unitnumber=0
-
- waitvalue is the delay in seconds between dialling and hanging up.
- You can increase this if you find 2 seconds not long enough. This will
- depend on how fast the modem dials, and other factors. 5 seconds is
- normally ample. Check results by dialling *#43# and listen to Digital
- Dorothy's recorded message.
-
- Arguments may be in any sequence, and are not case-conscious. (But
- the device name IS case-conscious, and must be correct.)
-
- If you forget, enter GCW ? and you will see the usage displayed.
-
-
- 4. What GCW does
- -----------------
- Putting it simply, GCW opens the serial port in shared mode and sends
- a dial command to the modem.
-
- GCW also opens the timer, and a message port to read anything the
- modem sends back.
-
- The timer is needed to make GCW stop running after n seconds - just long
- enough for the recorded message from BT to start coming in. If you don't
- wait for this, then Call Waiting doesn't get activated.
-
- The read port is necessary as otherwise the modem chokes, with nowhere to
- send it's replies.
-
-
- 5. Call Waiting with Trapdoor (and other comms software)
- -----------------------------
- - Here is a typical "modem initialize" command for Trapdoor:
-
- MODEMINIT "~~+++~~~ATZ|~~~~~~ATDT#43#|~~~~~~~~~~~~ATH|~~~~"
-
- Note that the pipe character | means 'return' in Trapdoor configs.
-
-
- - Here is my Trapdoor aftersession string, using GCW:
-
- AFTERSESSION "run GCW -w3 -dgvpser.device -u1 ON"
-
-
- - Here is my Terminus initialize (can be used in any comms program):
-
- "ATZ^M~~~ATDT#43#^M~~~~~~~ATH^M"
-
-
- - Here is a Terminus 'Hangup & restore call waiting' string. This can also
- be operated 'manually' by pressing rt-Amiga/H
-
- MODEMHANGUPCMD$ = "ATH^M~~~ATDT*43#^M~~~~~ATH^M"
-
-
- -------------------------------------------
-
- GCW was compiled & linked with SAS/C Vn6.55
- GCW has been tested with Enforcer and Codewatcher on an Amiga 4000/40,
- using a GVP ioExtender providing two extra serial ports,
- (gvpser.device, units 0 and 1).
-
- John Marchant (aka 'Gnome')
-
- Fidonet: 2:2500/167.15 Internet: gnome@martinac.demon.co.uk
-
-